<?php
class Util{
    
    public static function validarUrl($url){
        if(getimagesize($url)){
            return 1;
 
        }else{
           return 0;
        } 
    }
}

?>